<template>
	<view class="notice">
		<view class="notice-title">
			{{noticeInfo.title}}
		</view>
		<view class="notice-content">
			<u-parse :content="noticeInfo.content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:'',
				noticeInfo:{}
			}
		},
		onLoad(options) {
			this.getAdsList(options.id)
		},
		methods: {
			// 获取轮播图 公告
			getAdsList(id) {
				this.$http('index.getNoticeDetails', {
					id:id
				}, '获取中...').then(res => {
					if (res.code == 1) {
						this.noticeInfo = res.data
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.notice {
		padding: 20rpx;

		.notice-title {
			font-weight: bold;
			font-size: 32rpx;
			color: #333333;
		}

		.notice-content {
			font-weight: 400;
			font-size: 28rpx;
			color: #666666;
			line-height: 46rpx;
			margin-top: 30rpx;
		}
	}
</style>